package com.example.javabasic.thread.classtwo.threadlocal.demo2;

public class HttpAction {

    //任务执行逻辑
    public void execute(Context context){
        context.setHttp("http");
//        String name = context.getName();
//        System.out.println(name);
//        String name1 = getHttpName(name);
//        context.setHttp(name1);
    }

    private String getHttpName(String name){
        try {
            Thread.sleep(1000);

        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "http  内容";
    }

}
